//
//  SellingCell.h
//  WestAir
//
//  Created by s on 16/9/27.
//  Copyright © 2016年 Henry. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Reamark.h"

@protocol sellingCellDeleget <NSObject>

-(void)modifyNumber:(NSInteger  )index and:(Product  *)modle;;
-(void)modifyBeiZhu:(NSInteger)index and:(Product  *)modle;
-(void)modifyPrice:(NSInteger)index and:(Product  *)modle;
-(void)becomeEditing:(NSInteger)index ;


@end

@interface SellingCell : UITableViewCell<UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UIView *viewBackGround;
@property(nonatomic,weak)id<sellingCellDeleget>delegate;
@property (weak, nonatomic) IBOutlet UIImageView *iamgeHead;
@property (weak, nonatomic) IBOutlet UITextField *lableNum;

@property (weak, nonatomic) IBOutlet UILabel *lableTitle;
@property (weak, nonatomic) IBOutlet UITextField *lablePrice;
@property (weak, nonatomic) IBOutlet UITextField *TextViewContent;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lablePriceWidth;
@property (weak, nonatomic) IBOutlet UIButton *btnEdit;

@property(assign,nonatomic)NSInteger  currentIndex;

@property(nonatomic,strong)Product  *modle;

@property (weak, nonatomic) IBOutlet UIView *viewLine;

@end


@interface SellingCellZiTi : UITableViewCell<UITextFieldDelegate>

@property(nonatomic,weak)id<sellingCellDeleget>delegate;
@property (weak, nonatomic) IBOutlet UITextField *lableNum;

@property (weak, nonatomic) IBOutlet UILabel *lableTitle;
@property (weak, nonatomic) IBOutlet UITextField *lablePrice;
@property (weak, nonatomic) IBOutlet UITextField *TextViewContent;

@property(assign,nonatomic)NSInteger  currentIndex;

@property(nonatomic,strong)Product  *modle;
@property (weak, nonatomic) IBOutlet UIView *viewBackGround;
@property (weak, nonatomic) IBOutlet UILabel *bodyNumber;
@property (weak, nonatomic) IBOutlet UILabel *lableName;

@property (weak, nonatomic) IBOutlet UIView *viewLine;

@end
